﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 装备跨单位调拨
    /// </summary>
    [Table("T_EquipmentUnitsAllocate")]
    public class EquipmentUnitsAllocate : BaseEntity
    {
        /// <summary>
        /// 名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Qty { get; set; }
        /// <summary>
        /// 调拨原因
        /// </summary>
        [MaxLength(200)]
        public string Reason { get; set; }

        /// <summary>
        /// 调拨单位Code
        /// </summary>
        [MaxLength(50)]
        public string AllocateUnitCode { get; set; }
        /// <summary>
        /// 调拨单位名称
        /// </summary>
        [MaxLength(50)]
        public string AllocateUnitName { get; set; }

        /// <summary>
        /// 申请单位Code
        /// </summary>
        [MaxLength(50)]
        public string ApplyUnitCode { get; set; }
        /// <summary>
        /// 申请单位名称
        /// </summary>
        [MaxLength(50)]
        public string ApplyUnitName { get; set; }

        /// <summary>
        /// 审批状态：0-未开始；1-未完成；2-已完成
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 审批理由
        /// </summary>
        [MaxLength(200)]
        public string ApprovalReason { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginDate { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? EndDate { get; set; }
    }
}
